package com.xl.yygh.hosp.repository;

import com.xl.yygh.model.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author XiangLiang
 * @date 2023/10/24 16:41
 * @description
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {

    /**
     * 根据医院编号和科室编号获取Department实体
     * @param hoscode 医院编号
     * @param depcode 科室编号
     * @return Department实体
     */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
